
let app = getApp();

Component({
  properties: {
    isIndex: {
      type: Number,
      value: 1,
    }, 
  },
  data: {
     ios_h:''
  },
  attached() {
      this.setData({
          ios_h:getApp().globalData.ios_h
      })
  },
  methods: {
    gopage(e){
        let url = e.currentTarget.dataset.url;
        let type = e.currentTarget.dataset.type;
        if(type == this.data.isIndex){
            return;
        }
        wx.redirectTo({
          url: url,
        })
    }
  },
})